package com.itheima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.model.article.pojos.ApAuthor;
import com.itheima.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public interface AuthorService extends IService<ApAuthor> {
    /**
     *根据用户id查询作者信息
     * @param id
     * @return
     */
    public ResponseResult findByUserId(Integer id);

    /**
     * 保存作者
     * @param apAuthor
     * @return
     */
    public ResponseResult insert(ApAuthor apAuthor);
}
